Registry Guide for Windows Part of the WinGuides Network |
Registry tweaks, tricks & hacks to optimize, enhance and secure Microsoft Windows. |
Command Line Option to Reboot or Log Off Windows (Windows 95/98/Me) Category: Home > Windows > Login and Authentication This command allows you to create a shortcut or execute from a batch file a Windows DLL that will bypass the standard Start Menu method of shutdown and initiate a Log Off, Shutdown or Restart. For Windows 98 & Me C:\WINDOWS\RUNDLL32.EXE shell32.dll,SHExitWindowsEx x Where x is either 0, 1, 2, 4 or 8 (or a combination) based on the following table:
0 - Log off: Shuts down all running processes, then logs the user off.
Click Next and enter the name you want to call the icon (e.g. Shutdown).
For Windows 95 C:\WINDOWS\Rundll32.exe User,ExitWindows Note: The values above can be combined together to achieve different results. For example, to restart Windows forcefully, without querying any running programs, use the following command line: "rundll32.exe shell32.dll,SHExitWindowsEx 6" (i.e. 2 + 4)
Disclaimer: Modifying the registry can cause serious problems that may require you to reinstall your operating system. We cannot guarantee that problems resulting from modifications to the registry can be solved. Use the information provided at your own risk.
|
Return to Index | Copyright © 1998-2003. All Rights Reserved. License |